package cn.wl.pchart.tools;

import com.alibaba.fastjson.JSONObject;

// 通信类
public class Signal {
    // 通信编号，0位正常，其它错误
    public Integer code;
    // 对通信编号的解释
    public String msg;
    // 携带的数据
    public JSONObject data;

    Signal() {
        this.code = null;
        this.msg = null;
        this.data = null;
    }

    Signal(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
        this.data = null;
    }

    Signal(Integer code, String msg, JSONObject data) {
        this.code = code;
        this.msg = msg;
        this.data = data;
    }

}
